{{- if ($.Values.global.enabledModules | has "log-shipper") }}
{{- if .Values.flantIntegration.logs }}
apiVersion: deckhouse.io/v1alpha1
kind: ClusterLoggingConfig
metadata:
  name: flant-integration-d8-logs
  {{- include "helm_lib_module_labels" (list . (dict "app" "flant-integration")) | nindent 2 }}
spec:
  destinationRefs:
  - flant-integration-loki-storage
  kubernetesPods:
    namespaceSelector:
      matchNames:
      - d8-system
    labelSelector:
      matchLabels:
        app: deckhouse
  type: KubernetesPods
{{- end }}
{{- end }}
